﻿using System.Collections.Generic;
using System.IO;
using System.Linq;

public class ThemeManager
{
    public static List<Theme> GetThemes()
    {
        string[] dArrInfo = Directory.GetDirectories(System.Web.HttpContext.Current.Server.MapPath("App_Themes"));
        return dArrInfo.Select(d => new Theme(d.Split('\\')[d.Split('\\').Length - 1].ToString())).ToList();
    }
}